//
//  NewsIndexModel.m
//  YXFinance
//
//  Created by uplooking on 2018/10/23.
//  Copyright © 2018年 CRLong. All rights reserved.
//

#import "NewsIndexModel.h"

@implementation NewsIndexModel

+ (instancetype)initWithDictionary:(NSDictionary *)dictionary{
    
    NewsIndexModel * model = [[NewsIndexModel alloc]init];
    
    model.n_id = dictionary[@"id"];
    model.title = dictionary[@"title"];
    model.litpic = dictionary[@"litpic"];
    model.video_url = dictionary[@"video_url"];
    model.intro = dictionary[@"intro"];
    model.teacher_id = dictionary[@"teacher_id"];
    model.type_id = dictionary[@"typeid"];
    model.mid = dictionary[@"mid"];
    model.comments = dictionary[@"comments"];
    model.views = dictionary[@"views"];
    model.addtime = dictionary[@"addtime"];
    model.body = dictionary[@"body"];
    model.sdate = dictionary[@"sdate"];
    model.teacher_name = dictionary[@"teacher_name"];
    model.icon = dictionary[@"icon"];
    model.body_url = dictionary[@"body_url"];
    model.source = dictionary[@"source"];
    model.slug = dictionary[@"slug"];
    
    return model;
}

@end
